package com.scommunity.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.Objects;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * 轮播图表
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "sc_image")
public class Image implements Serializable{
    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.AUTO)
    private Long imageId;
    private String imageName;
    private String imagePath;
    
    public Image(Image image) {
        if (Objects.nonNull(image)) {
            this.imageId=image.imageId;
            this.imageName=image.imageName;
            this.imagePath=image.imagePath;
        }
    }
}
